<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once './_AddinLibraries/database_driver.php';

function add_teachingclass($id, $course, $term, $lecturer, $status, $bonus, $lab, $midterm, $final, $theoretical, $practical){
    select_itec_database();
    $query = 'call sp_AddTeachingclass(\''.$id."','".$course."','".$term."','".$lecturer."','".$status."','".$bonus."','".$lab."','".$midterm."','".$final."','".$theoretical."','".$practical.'\')';
    //dvm($query);
    //$sql = db_query($query);
    //$result = $sql->fetchAssoc();
    //select_drupal_database();
    return $result['result'];
}

?>
